<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/10/26 0026
 * Time: 下午 6:58
 */function fetchALL($sql){
    if ($result = query($sql)) {
        $rows = array();
        while ( $row = mysql_fetch_array($result,MYSQL_ASSOC)){
            $rows = array();
        }
        mysql_free_result($result);
        return $rows;
    }else{
        return false;
    }
}